package com.zjt.entity.product;

import com.zjt.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-24
 * Time: PM1:33
 * 产品关联类别
 * To change this template use File | Settings | File Templates.
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name="s_product_category")
public class ProductCategory extends BaseEntity{
    private long productId;
    private long categoryId;

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(long categoryId) {
        this.categoryId = categoryId;
    }

    @Override
    public String toString() {
        return "ProductCategory{" +
                "productId=" + productId +
                ", categoryId=" + categoryId +
                '}';
    }
}
